home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Software Contest 3 / FM Towns Software Contest 3.iso / exp / video_t / no1 / c_sorse / snd.c < prev    next >
C/C++ Source or Header  |  1994-01-07  |  5KB  |  219 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    Dialog_snd ;
  9. extern int    Message_snd ;
  10. extern int    DButton_snd ;
  11. extern int    s_fail() ;
  12. extern int    _002Message_snd ;
  13. extern int    _001Message_snd ;
  14. extern int    DButton_snd2 ;
  15. extern int    snd_on() ;
  16. extern int    _001DButton_snd2 ;
  17. extern int    snd_off() ;
  18. extern int    _003Message_snd ;
  19. extern int    _004Message_snd ;
  20. extern int    Text_snd ;
  21. extern int    NumBox_snd ;
  22.  
  23. #define ALIGN    4
  24. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  25.  
  26. /*    MMI_init 用データ    */
  27.  
  28. /*    ヘッダ    */
  29.  
  30. MMIINIT    initDataSND = { "MmiInit",  11, 0 } ;
  31.  
  32. /* Dialog_snd */
  33.  
  34. static MMIPACKET d001 = {    &Dialog_snd,
  35.                             NULL,
  36.                             &MJ_DIALOGL40,
  37.                             OFFSET(DIALOGL40),
  38.                             0
  39.                         } ;
  40. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  41.                               43,  34, 361, 223, 0, 7, 0,
  42.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  43.                             NULL,   0,   0
  44.                         } ;
  45.  
  46. /* Message_snd */
  47.  
  48. static MMIPACKET d002 = {    &Message_snd,
  49.                             &Dialog_snd,
  50.                             &MJ_MSGL40,
  51.                             OFFSET(MSGL40),
  52.                             0
  53.                         } ;
  54. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  55.                               51,  43, 354,  66, 0,15,12,
  56.                             MS_NONEL40,
  57.                             "音声データの選択",
  58.                                2,  16,  16,
  59.                             MS_NONEL40,
  60.                               10,   0
  61.                         } ;
  62.  
  63. /* DButton_snd */
  64.  
  65. static MMIPACKET d003 = {    &DButton_snd,
  66.                             &Dialog_snd,
  67.                             &MJ_DBUTTONL40,
  68.                             OFFSET(DBUTTONL40),
  69.                             0
  70.                         } ;
  71. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  72.                              109,  78, 301, 103, 0, 7, 0,
  73.                             MS_UFRAMEL40 | MS_FRAMEL40,
  74.                             s_fail,
  75.                             0x0000
  76.                         } ;
  77.  
  78. /* _002Message_snd */
  79.  
  80. static MMIPACKET d004 = {    &_002Message_snd,
  81.                             &Dialog_snd,
  82.                             &MJ_MSGL40,
  83.                             OFFSET(MSGL40),
  84.                             0
  85.                         } ;
  86. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  87.                              124,  79, 287, 102, 0,15, 0,
  88.                             MS_NONEL40,
  89.                             "音声ファィル選択",
  90.                                2,  16,  16,
  91.                             MS_NONEL40,
  92.                                3,   0
  93.                         } ;
  94.  
  95. /* _001Message_snd */
  96.  
  97. static MMIPACKET d005 = {    &_001Message_snd,
  98.                             &Dialog_snd,
  99.                             &MJ_MSGL40,
  100.                             OFFSET(MSGL40),
  101.                             0
  102.                         } ;
  103. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  104.                              103, 135, 262, 158, 0,15,15,
  105.                             MS_NONEL40,
  106.                             "音声データ識別番号",
  107.                                2,  16,  16,
  108.                             MS_NONEL40,
  109.                                0,   0
  110.                         } ;
  111.  
  112. /* DButton_snd2 */
  113.  
  114. static MMIPACKET d006 = {    &DButton_snd2,
  115.                             &Dialog_snd,
  116.                             &MJ_DBUTTONL40,
  117.                             OFFSET(DBUTTONL40),
  118.                             0
  119.                         } ;
  120. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  121.                               97, 179, 176, 204, 0, 7, 0,
  122.                             MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  123.                             snd_on,
  124.                             0x0000
  125.                         } ;
  126.  
  127. /* _001DButton_snd2 */
  128.  
  129. static MMIPACKET d007 = {    &_001DButton_snd2,
  130.                             &Dialog_snd,
  131.                             &MJ_DBUTTONL40,
  132.                             OFFSET(DBUTTONL40),
  133.                             0
  134.                         } ;
  135. static DBUTTONL40    d007d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  136.                              231, 179, 310, 204, 0, 7, 0,
  137.                             MS_UFRAMEL40 | MS_FRAMEL40,
  138.                             snd_off,
  139.                             0x0000
  140.                         } ;
  141.  
  142. /* _003Message_snd */
  143.  
  144. static MMIPACKET d008 = {    &_003Message_snd,
  145.                             &Dialog_snd,
  146.                             &MJ_MSGL40,
  147.                             OFFSET(MSGL40),
  148.                             0
  149.                         } ;
  150. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  151.                               96, 180, 180, 203, 0,15,15,
  152.                             MS_NONEL40,
  153.                             "確定",
  154.                                2,  16,  16,
  155.                             MS_NONEL40,
  156.                               16,   0
  157.                         } ;
  158.  
  159. /* _004Message_snd */
  160.  
  161. static MMIPACKET d009 = {    &_004Message_snd,
  162.                             &Dialog_snd,
  163.                             &MJ_MSGL40,
  164.                             OFFSET(MSGL40),
  165.                             0
  166.                         } ;
  167. static MSGL40    d009d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  168.                              232, 180, 312, 203, 0,15,15,
  169.                             MS_NONEL40,
  170.                             "取消",
  171.                                2,  16,  16,
  172.                             MS_NONEL40,
  173.                               16,   0
  174.                         } ;
  175.  
  176. /* Text_snd */
  177.  
  178. static MMIPACKET d010 = {    &Text_snd,
  179.                             &Dialog_snd,
  180.                             &MJ_TEXTL40,
  181.                             OFFSET(TEXTL40),
  182.                             0
  183.                         } ;
  184. static TEXTL40    d010d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
  185.                               50, 108, 354, 126, 0, 7, 0,
  186.                             MS_DFRAMEL40 | MS_FRAMEL40,
  187.                             0,
  188.                                0,   0,   0,   0,
  189.                                0,   0,   0,   0,   0,
  190.                                  300,   0,   0,
  191.                                0,   0,   0,   0,
  192.                                0,
  193.                                0,   0,   0,   0,
  194.                                1,  12,  12,   0,   0,
  195.                                0,   0,   0,   0,   0,   0,   0,
  196.                                0,   0,   0,   0,
  197.                               24
  198.                         } ;
  199.  
  200. /* NumBox_snd */
  201.  
  202. static MMIPACKET d011 = {    &NumBox_snd,
  203.                             &Dialog_snd,
  204.                             &MJ_NUMBOXL40,
  205.                             OFFSET(NUMBOXL40),
  206.                             0
  207.                         } ;
  208. static NUMBOXL40    d011d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  209.                              262, 135, 300, 158, 0, 7,15,
  210.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  211.                             0,
  212.                                1,  12,  12,
  213.                             MS_NONEL40,
  214.                                0,   0,
  215.                                0,   0,   4,   1,   0,
  216.                              263, 264
  217.                         } ;
  218.  
  219.